/**
 * 
 */
package edu.cmich.cps.cps240.partyprincesspalace.hw06;

import static org.junit.Assert.*;

import java.awt.Rectangle;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

/**
 * @author Josh
 *
 */
public class InputBusTest {

	/**
	 * Test method for {@link edu.cmich.cps.cps240.partyprincesspalace.hw06.InputBus#setName(java.lang.String)}.
	 */
	@Test
	public final void testSetName() {
		Rectangle rec = new Rectangle();
		InputBus inbus = new InputBus(rec);
		InputBus in2 = new InputBus(rec);
		assertFalse(inbus.getName().compareTo(in2.getName()) == 0);
		inbus.setName("");
		assertTrue("".compareTo(inbus.getName()) == 0);
		inbus.setName(null);
		assertEquals(null, inbus.getName());
	}

	/**
	 * Test method for {@link edu.cmich.cps.cps240.partyprincesspalace.hw06.InputBus#writeObject(java.io.ObjectOutputStream)}.
	 */
	@Test
	public final void testWriteObject() {
		//Can't test this
	}

	/**
	 * Test method for {@link edu.cmich.cps.cps240.partyprincesspalace.hw06.InputBus#readObject(java.io.ObjectInputStream)}.
	 */
	@Test
	public final void testReadObject() {
		//Can't test this
	}

	/**
	 * Test method for {@link edu.cmich.cps.cps240.partyprincesspalace.hw06.InputBus#InputBus(java.lang.String, java.awt.Rectangle)}.
	 */
	@Test
	public final void testInputBusRectangle() {
		Rectangle rec = new Rectangle();
		InputBus inbus = new InputBus(rec);
		assertNotNull(inbus);
	}

	/**
	 * Test method for {@link edu.cmich.cps.cps240.partyprincesspalace.hw06.InputBus#InputBus(edu.cmich.cps.cps240.partyprincesspalace.hw06.InputBus)}.
	 */
	@Test
	public final void testInputBusInputBus() {
		Rectangle rec = new Rectangle();
		InputBus inbus = new InputBus(rec);
		InputBus testbus = new InputBus(inbus);
		assertNotNull(testbus);
	}

}
